Assignment to for Loop Variable (AFLV)

Description:

An iteration variable of a for loop should not be changed in the body of the loop.

Incorrect:

for (int i = 0; i < buf.Length;) {
    ...
    i += GetStep(buf[i]);
}

Correct:

int i = 0;
while (i < buf.Length) {
    ...
    i += GetStep(buf[i]);
}